package com.lax.advertmgt.exception;

public enum BaseExprInfo {
    L_UNKOWN("platform_0001", "平台级异常，未知错误"),
    PL_RESP_NULL("platform_0002", "返回的响应对象不能为空."),
    CACHE_VALUE_TOO_LARGE("platform_cache_0001", "缓存存储的数据值过大"),
    AUTH_INVALID_REQUEST("platform_auth_0001", "非法请求，未授权访问"),
    ES_QUERY_ERROR("platform_es_0001", "ESQuery查询发生未知异常"),
    TOKEN_INVALID("200000", "没有登录或登录失效，请重新登录"),
    CODE_TOKEN_INVALID("200001", "微信服务获取失败，请确认是否网络链接正常"),
    WX_USER_INVALID("200002", "微信用户获取失败，请确认是否网络链接正常"),
    WX_ACCESSTOKEN_INVALID("200003", "微信服务调用失败，access_token已失效"),
    OPENID_INVALID("200004", "很抱歉,未找到用户"),
    WX_CODE_INVALID("200005", "微信授权登录失败，请稍候再试."),
    ALI_CODE_TOKEN_INVALID("300001", "支付宝服务获取失败，请确认是否网络链接正常");

    private String code = null;
    private String msg = null;

    private BaseExprInfo(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
